package com.wkr.order.entity;

import com.wkr.common.Constants;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@Data
@Table(name = "t_train_store")
public class TrainStoreEntity {

    @Id
    @Column(name = "id")
    private Long trainStoreId;

    @Column(name = "count")
    private Long count;

    @Column(name = "create_time")
    @DateTimeFormat(pattern = Constants.DATE_FORMAT_YYYYMMDD_HHMMSS)
    private LocalDateTime createTime;

    @Column(name = "update_time")
    @DateTimeFormat(pattern = Constants.DATE_FORMAT_YYYYMMDD_HHMMSS)
    private LocalDateTime updateTime;
}
